import os
import random


def delete_file(filename):
    try:
        os.remove(filename)
    except OSError:
        pass

def random_string(size):
    return ''.join(
        (chr(random.randint(1, 255)) for _ in range(size)))
